Optimal. Leaf size=36 \[ \frac {x^{1-m} \sqrt {a+b x}}{(1-m) \sqrt {-a-b x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {23, 30}
\begin {gather*} \frac {x^{1-m} \sqrt {a+b x}}{(1-m) \sqrt {-a-b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 23
Rule 30
Rubi steps
\begin {align*} \int \frac {x^{-m} \sqrt {a+b x}}{\sqrt {-a-b x}} \, dx &=\frac {\sqrt {a+b x} \int x^{-m} \, dx}{\sqrt {-a-b x}}\\ &=\frac {x^{1-m} \sqrt {a+b x}}{(1-m) \sqrt {-a-b x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 36, normalized size = 1.00 \begin {gather*} \frac {x^{1-m} \sqrt {a+b x}}{(1-m) \sqrt {-a-b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 31, normalized size = 0.86
method | result | size |
gosper | \(-\frac {x \sqrt {b x +a}\, x^{-m}}{\left (-1+m \right ) \sqrt {-b x -a}}\) | \(31\) |
risch | \(\frac {i \sqrt {\frac {-b x -a}{b x +a}}\, \sqrt {b x +a}\, x \,x^{-m}}{\sqrt {-b x -a}\, \left (-1+m \right )}\) | \(50\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.32, size = 15, normalized size = 0.42 \begin {gather*} -\frac {x}{{\left (i \, m - i\right )} x^{m}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.10, size = 42, normalized size = 1.17 \begin {gather*} \frac {\sqrt {b x + a} \sqrt {-b x - a} x}{{\left (a m + {\left (b m - b\right )} x - a\right )} x^{m}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 1.58, size = 180, normalized size = 5.00 \begin {gather*} \begin {cases} - \frac {i a a^{- m} b^{m} \left (-1 + \frac {b \left (\frac {a}{b} + x\right )}{a}\right )^{- m} e^{i \pi m}}{b \left (m e^{i \pi m} - e^{i \pi m}\right )} + \frac {i a^{- m} b^{m} \left (-1 + \frac {b \left (\frac {a}{b} + x\right )}{a}\right )^{- m} \left (\frac {a}{b} + x\right ) e^{i \pi m}}{m e^{i \pi m} - e^{i \pi m}} & \text {for}\: \left |{\frac {b \left (\frac {a}{b} + x\right )}{a}}\right | > 1 \\- \frac {i a a^{- m} b^{m} \left (1 - \frac {b \left (\frac {a}{b} + x\right )}{a}\right )^{- m}}{b \left (m e^{i \pi m} - e^{i \pi m}\right )} + \frac {i a^{- m} b^{m} \left (1 - \frac {b \left (\frac {a}{b} + x\right )}{a}\right )^{- m} \left (\frac {a}{b} + x\right )}{m e^{i \pi m} - e^{i \pi m}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 3.10, size = 14, normalized size = 0.39 \begin {gather*} \frac {i \, x^{-m + 1}}{m - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.20, size = 31, normalized size = 0.86 \begin {gather*} -\frac {x^{1-m}\,\sqrt {a+b\,x}}{\left (m-1\right )\,\sqrt {-a-b\,x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________